package cn.edu.lingnan.tourism.service;

import cn.edu.lingnan.tourism.exeption.TourismException;
import cn.edu.lingnan.tourism.pojo.Route;
import cn.edu.lingnan.tourism.pojo.Seller;
import cn.edu.lingnan.tourism.pojo.User;

import java.util.List;
import java.util.Map;

/**
 * @author liyinglai
 */
public interface AdminService {
    public List<User> getAllUsers()throws TourismException;

    public List<Route> getAllRoutes()throws TourismException;

    public List<Seller> getAllSellers()throws TourismException;

    public int deleteUser(Integer userId)throws TourismException;

    public int deleteRoute(Integer routeId)throws TourismException;

    public int deleteSeller(Integer sellerId)throws TourismException;

    public int updateUser(User user)throws TourismException;

    public int updateRoute(Route route)throws TourismException;

    public int updateSeller(Seller seller)throws TourismException;

    public int addUser(User user)throws TourismException;

    public int addRoute(Route route)throws TourismException;

    public int addSeller(Seller seller)throws TourismException;

    public List<User> selectUserByString(String str);

    public List<Seller> selectSellerByString(String str);

    public List<Route> selectRouteByString(String str);

    public Map<String,Integer> getAllNumber();
}